|
|
|
|
|
|
|
dgLine = gphLine
dgArea = gphArea
End Enum
'
' local property storage
'
Private intGraphType As Integer
Private strDBName As String
Private strSQLSelect As String
Private strFieldPoint As String
Private strTitle As String
'
' for internal use only
Private ws As Workspace
Private db As Database
Private rs As Recordset
Private lngNumPoints As Long
Private lngLoop As Long
'
' added properties
Private strLegendField As String
Private strLabelField As String
Private strLeftTitle As String
Private strBottomTitle As String
' |
|
|
|
|
|
|
|
|
The next step is to use the Tools | Add Procedure | Property options from the main menu to add the four new property declarations to the class. Listing 11.22 shows the code for each of these new properties. |
|
|
|
|
|
|
|
|
Listing 11.22. Code for the new properties. |
|
|
|
|
|
|
|
|
Public Property Get LegendField() As Variant
LegendField = strLegendField
End Property
Public Property Let LegendField(ByVal vNewValue As Variant)
strLegendField = vNewValue
End Property
Public Property Get LabelField() As Variant
LabelField = strLabelField
End Property
Public Property Let LabelField(ByVal vNewValue As Variant)
strLabelField = vNewValue
End Property
Public Property Get LeftTitle() As Variant
LeftTitle = strLeftTitle
End Property |
|
|
|
|
|